import Router from 'koa-router'

import AiGoodsControlle from '../controller/dlyadmin/aiGoodsControlle'

const router = new Router()

router.prefix('/dlyadminapi/dlyadminAigoods')

router
	/**
	 * @swagger
	 * /dlyadminapi/dlyadminAigoods/list:
	 *   get: 
	 *     description: 获取ai价格表
	 *     tags: [dlyadminAigoods]
	 *     summary:  "获取ai价格表"
	 *     parameters:
	 *           - in: query
	 *             name: status
	 *             type: string
	 *             required: false
	 *             default: ''
	 *             description: 状态 ‘’ 全部 ‘1’ 启用 ‘0’ 禁用
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 返回结果
	 * */
	.get('/list', AiGoodsControlle.list)
	/**
	 * @swagger
	 * /dlyadminapi/dlyadminAigoods/add:
	 *   post: 
	 *     description: 新增价格配置
	 *     tags: [dlyadminAigoods]
	 *     summary:  "新增价格配置"
	 *     parameters:
	 *           - in: body
	 *             name: status
	 *             type: string
	 *             required: false
	 *             default: ''
	 *             description: 状态 ‘’ 全部 ‘1’ 启用 ‘0’ 禁用
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 返回结果
	 * */
	.post('/add', AiGoodsControlle.add)
	/**
	 * @swagger
	 * /dlyadminapi/dlyadminAigoods/edit/:id:
	 *   put: 
	 *     description: 编辑价格配置
	 *     tags: [dlyadminAigoods]
	 *     summary:  "编辑价格配置"
	 *     parameters:
	 *           - in: query
	 *             name: status
	 *             type: string
	 *             required: false
	 *             default: ''
	 *             description: 状态 ‘’ 全部 ‘1’ 启用 ‘0’ 禁用
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 返回结果
	 * */
	.put('/edit/:id', AiGoodsControlle.edit)
	/**
	 * @swagger
	 * /dlyadminapi/dlyadminAigoods/deleted/:id:
	 *   delete: 
	 *     description: 删除价格配置
	 *     tags: [dlyadminAigoods]
	 *     summary:  "删除价格配置"
	 *     parameters:
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 返回结果
	 * */
	.delete('/deleted/:id', AiGoodsControlle.deleted)


export default router
